.class public Lcom/glympse/platform/common/GDateTime;
.super Ljava/lang/Object;
.source "GDateTime.java"


# instance fields
.field public m_nDay:I

.field public m_nHour:I

.field public m_nMilliseconds:I

.field public m_nMinute:I

.field public m_nMonth:I

.field public m_nSeconds:I

.field public m_nYear:I

.field protected m_oCalendar:Ljava/util/Calendar;


# direct methods
.method public constructor <init>(J)V
    .locals 2
    .parameter "lTime"

    .prologue
    .line 32
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 21
    const-string v0, "GMT"

    invoke-static {v0}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;

    move-result-object v0

    sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;

    invoke-static {v0, v1}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;Ljava/util/Locale;)Ljava/util/Calendar;

    move-result-object v0

    iput-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    .line 34
    invoke-virtual {p0, p1, p2}, Lcom/glympse/platform/common/GDateTime;->Set(J)V

    .line 35
    return-void
.end method


# virtual methods
.method public Set(J)V
    .locals 2
    .parameter "lTime"

    .prologue
    .line 40
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    new-instance v1, Ljava/util/Date;

    invoke-direct {v1, p1, p2}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    .line 42
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    rem-int/lit8 v0, v0, 0x64

    iput v0, p0, Lcom/glympse/platform/common/GDateTime;->m_nYear:I

    .line 43
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/glympse/platform/common/GDateTime;->m_nMonth:I

    .line 44
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    iput v0, p0, Lcom/glympse/platform/common/GDateTime;->m_nDay:I

    .line 45
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    const/16 v1, 0xb

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    iput v0, p0, Lcom/glympse/platform/common/GDateTime;->m_nHour:I

    .line 46
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    const/16 v1, 0xc

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    iput v0, p0, Lcom/glympse/platform/common/GDateTime;->m_nMinute:I

    .line 47
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    const/16 v1, 0xd

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    iput v0, p0, Lcom/glympse/platform/common/GDateTime;->m_nSeconds:I

    .line 48
    iget-object v0, p0, Lcom/glympse/platform/common/GDateTime;->m_oCalendar:Ljava/util/Calendar;

    const/16 v1, 0xe

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    iput v0, p0, Lcom/glympse/platform/common/GDateTime;->m_nMilliseconds:I

    .line 49
    return-void
.end method
